﻿// Decompiled with JetBrains decompiler
// Type: TaleWorlds.MountAndBlade.View.BannerVisualExtensions
// Assembly: TaleWorlds.MountAndBlade.View, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 61152EB8-513B-4D4A-8AC0-0D1465C6CF6C
// Assembly location: D:\steam\steamapps\common\Mount & Blade II Bannerlord\Modules\Native\bin\Win64_Shipping_Client\TaleWorlds.MountAndBlade.View.dll

using System;
using TaleWorlds.Core;
using TaleWorlds.Engine;

#nullable disable
namespace TaleWorlds.MountAndBlade.View
{
  public static class BannerVisualExtensions
  {
    public static Texture GetTableauTextureSmall(this Banner banner, Action<Texture> setAction)
    {
      return ((BannerVisual) banner.BannerVisual).GetTableauTextureSmall(setAction);
    }

    public static Texture GetTableauTextureLarge(this Banner banner, Action<Texture> setAction)
    {
      return ((BannerVisual) banner.BannerVisual).GetTableauTextureLarge(setAction);
    }

    public static MetaMesh ConvertToMultiMesh(this Banner banner)
    {
      return ((BannerVisual) banner.BannerVisual).ConvertToMultiMesh();
    }
  }
}
